<template>
  <div class="step3-container">
    <!-- 步骤信息 -->
    <div class="step">
      <div class="step-item item1">
        <img src="@/assets/pay/info.png" alt="" />
        <span>确认订单</span>
      </div>
      <div class="step-item item2">
        <div class="tail-top"></div>
        <div class="tail-bottom"></div>
        <span>选择支付方式</span>
      </div>
      <div class="step-item item3">
        <div class="tail-top"></div>
        <div class="tail-bottom"></div>
        <span>支付成功</span>
      </div>
    </div>
    <!-- 订单信息 -->
    <div class="shop-info">
      <span class="shop-info-title">订单信息</span>
      <div class="shop-info-container">
        <div class="shop-info-header">
          <div class="item nothing"></div>
          <div class="item shop-name">产品名称</div>
          <div class="item shop-package">套餐版本</div>
          <div class="item shop-time">套餐配额</div>
          <div class="item shop-price">价格</div>
        </div>
        <div class="shop-info-body">
          <div class="img-container item">
            <img :src="shopData.imgUrl" alt="" />
          </div>
          <div class="item shop-name">{{ shopData.name }}</div>
          <div class="item shop-package">{{ shopData.package }}</div>
          <div class="item shop-time">{{ shopData.time }}</div>
          <div class="item shop-price">￥{{ shopData.price }}</div>
        </div>
        <!-- 状态信息 -->
        <div class="state-info">
          <div class="top">
            <div class="number">
              <span class="title">订单号：</span>
              <span class="desc">DAKH2022011912213958</span>
            </div>
            <div class="state">
              <span class="title">支付状态：</span>
              <span class="desc">已支付</span>
            </div>
          </div>
          <div class="center">
            <div class="time">
              <span class="title">下单时间：</span>
              <span class="desc">2022-01-19 12:51:48</span>
            </div>
            <div class="pay-time">
              <span class="title">支付时间：</span>
              <span class="desc">2022-01-19 12:52:21</span>
            </div>
          </div>
          <div class="bottom">
            <div class="way">
              <span class="title">支付方式：</span>
              <span class="desc">微信支付</span>
            </div>
            <div class="pay-num">
              <span class="title">支付单号：</span>
              <span class="desc">4810410105001028516</span>
            </div>
          </div>
        </div>
        <!-- 邮箱信息 -->
        <div class="mail-info">
          <div class="top">
            <div class="mail-addr">
              <span class="title">邮箱地址：</span>
              <span class="desc">test@mion.cn</span>
            </div>
          </div>
          <div class="bottom">
            <div class="mail-remark">
              <span class="title">备注：</span>
              <span class="desc"
                >这是备注这是备注这是备注，这是备注这是备注，这是备注这是备注这是备注</span
              >
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      agree: false,
      shopData: {
        imgUrl: require("@/assets/detail/send.png"),
        name: "【短信服务】短信验证码",
        package: "83.3元/1000次",
        time: "1000次",
        price: "83.30",
      },
    };
  },
};
</script>

<style scoped lang="less">
@import "~@/styles/var.less";
.step3-container {
  padding: 0 360px 36px;
  .step {
    width: 100%;
    overflow: hidden;
    display: flex;
    .step-item {
      font-size: 14px;
      height: 32px;
      line-height: 32px;
      position: relative;
      text-align: center;
    }
    .item1 {
      width: 397px;
      background: #1fc45f;
      color: #fff;
      &::after {
        content: "";
        position: absolute;
        display: block;
        width: 32px;
        height: 32px;
        background-color: #1fc45f;
        right: -10px;
        top: 0px;
        transform: rotate(45deg);
      }
      img {
        width: 20px;
        height: 20px;
        vertical-align: -5px;
      }
    }
    .item2 {
      margin-left: 20px;
      width: 397px;
      background: #1fc45f;
      color: #fff;
      &::after {
        content: "";
        position: absolute;
        display: block;
        width: 32px;
        height: 32px;
        background-color: #1fc45f;
        right: -10px;
        top: 0px;
        transform: rotate(45deg);
      }
      .tail-top {
        position: absolute;
        width: 38px;
        left: -20px;
        transform: rotate(45deg);
        top: -27px;
        height: 35px;
        background-color: #1fc45f;
      }
      .tail-bottom {
        position: absolute;
        width: 38px;
        left: -18px;
        transform: rotate(45deg);
        bottom: -27px;
        height: 35px;
        background-color: #1fc45f;
      }
    }
    .item3 {
      margin-left: 20px;
      width: 397px;
      background: #1fc45f;
      color: #fff;
      .tail-top {
        position: absolute;
        width: 38px;
        left: -20px;
        transform: rotate(45deg);
        top: -27px;
        height: 35px;
        background-color: #1fc45f;
      }
      .tail-bottom {
        position: absolute;
        width: 38px;
        left: -18px;
        transform: rotate(45deg);
        bottom: -27px;
        height: 35px;
        background-color: #1fc45f;
      }
    }
  }
  .shop-info {
    display: flex;
    flex-direction: column;
    color: #333333;
    .shop-info-title {
      font-weight: bold;
      margin: 16px 0;
      font-size: 14px;
    }
    .shop-info-container {
      border: 1px solid #ededed;
      border-radius: 4px;
      .shop-info-header {
        border-bottom: 1px solid #ededed;
        background: #f8f8f8;
        display: flex;
        .item {
          height: 48px;
          line-height: 48px;
          text-align: center;
          font-size: 14px;
          color: #666666;
        }
      }
      .shop-info-body {
        border-bottom: 1px solid #ededed;
        display: flex;
        .item {
          height: 96px;
          line-height: 96px;
          text-align: center;
        }
      }
      .state-info {
        border-bottom: 1px solid #ededed;
        border-top: none;
        display: flex;
        flex-direction: column;
        row-gap: 12px;
        padding: 16px 0;
        .top {
          width: 100%;
          display: flex;
          .number {
            width: 50%;
            margin-left: 37px;
          }
          .state {
            margin-left: -5px;
            .desc {
              color: #1fc45f;
            }
          }
        }
        .center {
          width: 100%;
          display: flex;
          .time {
            width: 50%;
            margin-left: 23px;
          }
          .pay-time {
            margin-left: 10px;
          }
        }
        .bottom {
          width: 100%;
          display: flex;
          .way {
            width: 50%;
            margin-left: 23px;
          }
          .pay-num {
            margin-left: 10px;
          }
        }
        .title {
          font-size: 14px;
          color: #666666;
        }
        .desc {
          color: #333333;
          font-size: 14px;
        }
      }
      .mail-info {
        display: flex;
        padding: 16px 0;
        flex-direction: column;
        row-gap: 12px;
        .title {
          font-size: 14px;
          color: #666666;
        }
        .desc {
          color: #333333;
          font-size: 14px;
        }
        .mail-addr {
          margin-left: 23px;
        }
        .mail-remark {
          margin-left: 51px;
        }
      }
    }
    .img-container {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 110px;
      img {
        width: 64px;
        height: 64px;
        border-radius: 4px;
      }
    }
    .nothing {
      width: 110px;
    }
    .shop-name {
      width: 388px;
    }
    .shop-package {
      width: 202px;
    }
    .shop-time {
      width: 239px;
    }
    .shop-price {
      width: 260px;
      color: @primary;
    }
  }
}
</style>